package com.wechat.admin.model.vo;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Author:sjb
 * @CreateTime:2024-12-25
 * @Description: 按照分组展示用户信息
 * @Version：1.0
 */
@Data
public class UserInfoByGroupVo implements Serializable {

    // 存储没有分组的用户
    private List<UserInfoVo> ungroupedUsers;

    // 存储按组分组的用户
    private List<GroupedUserInfo> groupedUsers;

    private static final long serialVersionUID = 1L;


    @Data
    public static class UserInfoVo{
        private String userName;
        private String groupName;
        private Date createTime;
        private String userRole;
    }

    @Data
    public static class GroupedUserInfo{
        private String groupName;
        private List<UserInfoVo> users;
    }

}
